home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 January / EnterCD 01_2004.iso / Multimedia / Advanced Effect Maker Freeware Edition 1.0 / aemf10.exe / {app} / templates / dissolvemessage.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2002-11-13  |  1.3 KB  |  49 lines

  1. debug = 0;
  2. if(0 < debug)
  3. {
  4.    movx = 300;
  5.    movy = 300;
  6.    var texts = new String("This is|Dissolve wipe|text effect");
  7.    var urls = new String("http://www.site1.com|http://www.site2.com|http://www.site3.com|http://www.site4.com|");
  8.    tpause = 300;
  9.    target = "_blank";
  10.    dis = 16711680;
  11.    tcol = 255;
  12. }
  13. else
  14. {
  15.    var movx = parseInt("400",10);
  16.    var movy = parseInt("40",10);
  17.    var texts = "Migrane tablets dissolve in water!|So does this applet with your messages!|DissolveMessage, cures your headache!|";
  18.    var urls = "http://www.effectmaker.com/clickpage.html|http://www.effectmaker.com/clickpage.html|http://www.effectmaker.com/clickpage.html|";
  19.    var tpause = parseInt("300",10);
  20.    var target = "_blank";
  21.    var dis = parseInt("16776960",10);
  22.    var tcol = parseInt("255",10);
  23. }
  24. var texts = texts.split("|");
  25. var urls = urls.split("|");
  26. maxitems = texts.length - 1;
  27. moviearea._x = 0;
  28. moviearea._width = movx;
  29. moviearea._y = 0;
  30. moviearea._height = movy;
  31. tpause = int(tpause * 12 / 100);
  32. if(tpause % 2 == 1)
  33. {
  34.    tpause++;
  35. }
  36. ii = -1;
  37. myp = tpause;
  38. duplicateMovieClip(ma,"mama",17161);
  39. setProperty("mama", _visible, false);
  40. tellTarget("mama")
  41. {
  42.    stop();
  43. }
  44. var today = new Date();
  45. if(!(today.getTime() < _root.ts && _root.ts < today.getTime() + 172800000 || _root.ts == -1 || 0 < debug))
  46. {
  47.    gotoAndStop("ea");
  48. }
  49.